package com.lyf.mapper.user;

import com.lyf.dto.ShoppingCartDTO;
import com.lyf.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    List<ShoppingCart> list(ShoppingCart shoppingCart);

    ShoppingCart getByDishIdOrSetmealId(Long userId,Long dishId,Long setmealId);

    void update(ShoppingCart shoppingCart);

    void insert(ShoppingCart shoppingCart);

    void deleteById(ShoppingCart shoppingCart);

    void insertBatch(List<ShoppingCart> shoppingCartList);
}
